package cn.zn.modules.pz.cur.entity;

import cn.zn.framework.common.abs.AbsOldMainEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tp_spending")
public class TpSpending extends AbsOldMainEntity {
    @TableField(value = "SPENDING_TYPE_")
    private Integer spendingType;

    @TableField(value = "MONEY_")
    private Double money;

    @TableField(value = "PROJECT_CODE_")
    private String projectCode;

    @TableField(value = "REASON_")
    private String reason;

    @TableField(value = "TP_MAIN_ID_")
    private String tpMainId;

    @TableField(value = "IS_EXPENSE_")
    @Builder.Default
    private Boolean isExpense = false;

    @TableField(value = "IS_USE_PUBLIC_")
    @Builder.Default
    private Boolean isUsePublic = false;

    @TableField(value = "DOC_CODE_DW_")
    private String docCodeDw;

    @TableField(value = "DOC_CODE_YZ_")
    private String docCodeYz;
}